package com.gateway.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @Author:RenPu
 * @Date: 2020/10/27 15:44
 * @Version: 1.0
 * @description: gateway网关服务
 * gateway作为网关的优点，
 * 1：底层是基于netty告速响应的通信框架为基础，
 * 2：RPS每秒可支持25000个 （请求次数） 优越于Zuul
 * 3：gateway的场景：路由寻址，负载均衡，限流，用户的鉴权
 * 4：spring 官网主推的组件
 */

@EnableEurekaClient
@SpringBootApplication
public class GatewayMainApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayMainApplication.class, args);
    }


}
